# Template file for 'slim'
pkgname=slim
version=1.3.6
revision=19
build_style=cmake
configure_args="-DUSE_CONSOLEKIT=1 -DUSE_PAM=yes"
conf_files="/etc/slim.conf /etc/pam.d/slim"
hostmakedepends="pkgconf"
makedepends="libpng-devel freetype-devel libjpeg-turbo-devel libXrandr-devel
 libXmu-devel libXft-devel pam-devel ConsoleKit2-devel"
short_desc="Desktop-independent graphical login manager for X11"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://sourceforge.net/projects/slim.berlios/"
distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
lib32disabled=yes
patch_args="-Np0"

case "$XBPS_TARGET_MACHINE" in
	*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
esac

post_install() {
	vsv slim
	vinstall ${FILESDIR}/slim.pam 644 etc/pam.d slim
	rm -rf ${DESTDIR}/lib/systemd
}
